package com.woniu.demo;

/**
 * @author zhaolei
 * @date 2021/5/7 - 23:45
 */
public class TestThreadDemo4 {
    public static void main(String[] args) {
        ThreadDemo4 th1= new ThreadDemo4();
        Thread thread1 = new Thread(th1);
        thread1.setName("用户1");
        thread1.start();

        ThreadDemo4 th2 = new ThreadDemo4();
        Thread thread2 = new Thread(th2);
        thread2.setName("用户2");
        thread2.start();
    }
}
